<form action="index.php" method="post" name="adminForm">
<script>
  jQuery(document).ready(function(){
    create_tab("#tabs");
    
    var hash = jQuery(location).attr("hash");
    if(hash != '')
      jQuery('#tabs ul li a[href="' + hash + '"]').click();
  });
</script>
  
<div id="tabs" style="padding-top:10px;">
    
  <ul>
<?  foreach($this->divisions as $id => $division): ?>
    <li>
      <a href="#division-<?= $id ?>"><?= $division->name ?></a>
    </li>
<?  endforeach; ?>
  </ul>
  
<?  foreach($this->divisions as $division): ?>
    <div id="division-<?= $division->id ?>" style="margin:1em 2em;">
      <?= $division->infos ?>
    </div>
<?  endforeach; ?>
  
</div>

</form>
